package com.ruoyi.comment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.comment.mapper.EvaluationResultMapper;
import com.ruoyi.comment.domain.EvaluationResult;
import com.ruoyi.comment.service.IEvaluationResultService;

/**
 * 测评结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-12
 */
@Service
public class EvaluationResultServiceImpl implements IEvaluationResultService 
{
    @Autowired
    private EvaluationResultMapper evaluationResultMapper;

    /**
     * 查询测评结果
     * 
     * @param id 测评结果主键
     * @return 测评结果
     */
    @Override
    public EvaluationResult selectEvaluationResultById(Long id)
    {
        return evaluationResultMapper.selectEvaluationResultById(id);
    }

    /**
     * 查询测评结果列表
     * 
     * @param evaluationResult 测评结果
     * @return 测评结果
     */
    @Override
    public List<EvaluationResult> selectEvaluationResultList(EvaluationResult evaluationResult)
    {
        return evaluationResultMapper.selectEvaluationResultList(evaluationResult);
    }

    /**
     * 新增测评结果
     * 
     * @param evaluationResult 测评结果
     * @return 结果
     */
    @Override
    public int insertEvaluationResult(EvaluationResult evaluationResult)
    {
        return evaluationResultMapper.insertEvaluationResult(evaluationResult);
    }

    /**
     * 修改测评结果
     * 
     * @param evaluationResult 测评结果
     * @return 结果
     */
    @Override
    public int updateEvaluationResult(EvaluationResult evaluationResult)
    {
        return evaluationResultMapper.updateEvaluationResult(evaluationResult);
    }

    /**
     * 批量删除测评结果
     * 
     * @param ids 需要删除的测评结果主键
     * @return 结果
     */
    @Override
    public int deleteEvaluationResultByIds(Long[] ids)
    {
        return evaluationResultMapper.deleteEvaluationResultByIds(ids);
    }

    /**
     * 删除测评结果信息
     * 
     * @param id 测评结果主键
     * @return 结果
     */
    @Override
    public int deleteEvaluationResultById(Long id)
    {
        return evaluationResultMapper.deleteEvaluationResultById(id);
    }
}
